package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.InvoiceDao;
import com.platform.entity.InvoiceEntity;
import com.platform.service.InvoiceService;

/**
 * 发票表Service实现类
 *
 * @author czj
 * @email 729618941@qq.com
 * @date 2018-11-19 17:32:03
 */
@Service("invoiceService")
public class InvoiceServiceImpl implements InvoiceService {
    @Autowired
    private InvoiceDao invoiceDao;

    @Override
    public InvoiceEntity queryObject(Integer id) {
        return invoiceDao.queryObject(id);
    }

    @Override
    public List<InvoiceEntity> queryList(Map<String, Object> map) {
        return invoiceDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return invoiceDao.queryTotal(map);
    }

    @Override
    public int save(InvoiceEntity invoice) {
        return invoiceDao.save(invoice);
    }

    @Override
    public int update(InvoiceEntity invoice) {
        return invoiceDao.update(invoice);
    }

    @Override
    public int delete(Integer id) {
        return invoiceDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[]ids) {
        return invoiceDao.deleteBatch(ids);
    }
}
